          <?php
          drupal_add_css(CSS . 'accommodation.filter.css',array("type"=>"external"));
          drupal_add_js(JS . 'accommodation.filter.js',array("type"=>"external"));
          drupal_add_js(JS . 'jquery.form.min.js',array("type"=>"external"));?>
                                            <form action="/controller/entity_filtering.php" method="GET" id="accommodation_filter">
                                                <div style="float:left;line-height:39px;margin-left:2px;">
                                                    <span><?=$filter_rating?></span><span class="rate_count text-muted"></span>
                                                </div>                                            
                                                <div class="btn-group" data-toggle="buttons" id="rating_filter">
                                                    <label style="margin-right:0px" class="btn btn-link star_1 <?=$category["Records"][0][0][3][0] == 0 ? "disabled":""?>">
                                                        <input type="checkbox" name="rating" value="1" class="accommodation_opt">
                                                    </label>
                                                    <label class="btn btn-link star_2 <?=$category["Records"][0][0][3][1] == 0 ? "disabled":""?>">
                                                        <input type="checkbox" name="rating" value="2" class="accommodation_opt"> 
                                                    </label>
                                                    <label class="btn btn-link star_3 <?=$category["Records"][0][0][3][2] == 0 ? "disabled":""?>">
                                                        <input type="checkbox" name="rating" value="3" class="accommodation_opt"> 
                                                    </label>
                                                    <label class="btn btn-link star_4 <?=$category["Records"][0][0][3][3] == 0 ? "disabled":""?>">
                                                        <input type="checkbox" name="rating" value="4" class="accommodation_opt"> 
                                                    </label>
                                                    <label style="margin-left:0px" class="btn btn-link star_5 <?=$category["Records"][0][0][3][4] == 0 ? "disabled":""?>">
                                                        <input type="checkbox" name="rating" value="5" class="accommodation_opt"> 
                                                    </label> 
                                                </div>
                                                <div style="float:left;line-height:39px;margin-left:4px;margin-right:4px;">
                                                    |
                                                </div>
                                                <div style="float:left;line-height:39px;">
                                                    <span><?=$filter_service?></span><span class="service_count text-muted"></span>
                                                </div>
                                                <div class="btn-group" data-toggle="buttons" id="service_filter">
                                                    <label style="margin-left:0px" class="btn btn-link kit <?=$category["Records"][0][0][4]["256"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$kit?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,8)?>">  
                                                    </label>
                                                    <label class="btn btn-link discount <?=$category["Records"][0][0][4]["128"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$discount?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,7)?>">  
                                                    </label>
                                                    <label class="btn btn-link breakfast <?=$category["Records"][0][0][4]["64"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$breakfast?>">
                                                        <input type="checkbox"  class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,6)?>"> 
                                                    </label>
                                                    <label class="btn btn-link speak_staff <?=$category["Records"][0][0][4]["32"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$mandarin?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,5)?>">
                                                    </label>
                                                    <label class="btn btn-link teaset <?=$category["Records"][0][0][4]["16"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$tea_set?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,4)?>"> 
                                                    </label>
                                                    <label class="btn btn-link unionplay <?=$category["Records"][0][0][4]["8"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$un_pay?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,3)?>"> 
                                                    </label>
                                                    <label class="btn btn-link magazine <?=$category["Records"][0][0][4]["4"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$wcme?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,2)?>"> 
                                                    </label>
                                                    <label class="btn btn-link chi_tv <?=$category["Records"][0][0][4]["2"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$cntv?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,1)?>"> 
                                                    </label>
                                                    <label style="margin-right:0px" class="btn btn-link cctv <?=$category["Records"][0][0][4]["1"] == 0 ? "disabled":""?>" data-toggle="tooltip" data-placement="bottom" title="<?=$cctv?>">
                                                        <input type="checkbox" class="accommodation_opt" id="rate1" name="service" value="<?=pow(2,0)?>"> 
                                                    </label>
                                                </div>
                                            </form>